home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-01 / zendisk1.zip / LST8-5.ASM < prev    next >
Assembly Source File  |  1990-02-15  |  319b  |  19 lines

  1. ;
  2. ; *** Listing 8-5 ***
  3. ;
  4. ; Initializes a variable to 1 by setting AX to 1, then
  5. ; using the accumulator-specific form of MOV to store
  6. ; that value to a direct-addressed operand.
  7. ;
  8.     jmp    Skip
  9. ;
  10. InitialValue    dw    ?
  11. ;
  12. Skip:
  13.     call    ZTimerOn
  14.     rept    1000
  15.     mov    ax,1
  16.     mov    [InitialValue],ax
  17.     endm
  18.     call    ZTimerOff
  19.